package com.code.base.sys.pojo;

import java.util.Date;

import com.code.iface.ITree;
import com.code.vo.PageVO;


public class SysMenu extends PageVO implements java.io.Serializable, ITree {


	private static final long serialVersionUID = 1L;

	private Long id;

	private String menuName;

	private String action;

	private Long parentId;

	private Integer stat;

	private Integer sort;

	private String icon;

	private Integer leafNode;

	private Date createTime;

	private Date updateTime;

	private String remark;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMenuName() {
		return this.menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getAction() {
		return this.action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Long getParentId() {
		return this.parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getStat() {
		return this.stat;
	}

	public void setStat(Integer stat) {
		this.stat = stat;
	}

	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getLeafNode() {
		return this.leafNode;
	}

	public void setLeafNode(Integer leafNode) {
		this.leafNode = leafNode;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public Boolean getLeaf() {
		if (leafNode == 1) {
			return true;
		} else {
			return false;
		}
	}

	@Override
	public String getText() {
		return menuName;
	}

}
